package cn.pet.service.manage.entity;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 
 * @since 2023-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PetOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    private String id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 订单总价
     */
    private Double money;

    /**
     * 订单状态(0:待支付，1：已支付，待发货，2：已发货，待收货，3：已收货，待评论，4：订单完成)
     */
    private Integer status;

    /**
     * 订单时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 收获地址ID
     */
    private Integer addressId;

    /**
     * 备注
     */
    private String remarks;

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String MONEY = "money";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String ADDRESS_ID = "address_id";

    public static final String REMARKS = "remarks";

}
